/*
 * author: ws
 * desc: 系统常量定义
 */

/**************************一般常量***************************/
// 系统内常量定义
exports.DAILY_ORDER_GET_LIMIT = 10;

// 订单轮询的时间间隔，以分钟计
exports.ORDER_CHECK_TIME_INTERVAL = 10;
exports.ORDER_EXPIRE_HOURS = 24;

// 融云消息的额外参数的类型
exports.RC_MSG_EXTRA_CONTENT_TYPE_EVALUATE = 1;  // 评价类型

//app环境那么
//exports.APP_NAME = "meipei"
exports.APP_NAME = "wudutuan"


/**************************模型常量***************************/
// 用户类型
exports.USER_TYPE_NORMAL = 0;
exports.USER_TYPE_PROFESSIONAL = 1;
exports.USER_TYPE_EDIT = 2;
// 账号状态
exports.USER_STATUS_NORMAL = 0;
exports.USER_STATUS_DISABLE = 1;
exports.USER_STATUS_FORBIDDEN = 2;
exports.USER_STATUS_BADINFO = 3;

// 用户性别
exports.USER_GENDER_UNKNOWN = 0;
exports.USER_GENDER_MALE = 1;
exports.USER_GENDER_FEMALE = 2;

// 订单状态
exports.ORDER_STATUS_WAITING = 0;
exports.ORDER_STATUS_GOING = 1;
exports.ORDER_STATUS_COMMENT = 2;
exports.ORDER_STATUS_FINISH = 3;
exports.ORDER_STATUS_CANCEL = 4;
exports.ORDER_STATUS_DRAWBACK = 5;

//约会状态
exports.DATE_STATUS_WAITING = 0;//未开始
exports.DATE_STATUS_APPLYED = 1;//已接受，等待付款
exports.DATE_STATUS_GOING = 2;//进行中，已付款
exports.DATE_STATUS_FINISH = 3;//约完，待评价
exports.DATE_STATUS_COMMENTED = 4;//已评价
exports.DATE_STATUS_CANCEL = 5;
exports.DATE_STATUS_REFUSED = 6;//被拒绝
exports.DATE_STATUS_DRAWBACK = 7;

// 订单类型
exports.ORDER_TYPE_DEMAND = 0;  // 招
exports.ORDER_TYPE_SUPPLY = 1;  // 扮演

// 认证状态
exports.AUTHENTICATION_STATUS_NORMAL = 0;
exports.AUTHENTICATION_STATUS_SUCCEED = 1;
exports.AUTHENTICATION_STATUS_FAILED = 2;

// 提现状态
exports.WITHDRAW_STATUS_WAIT_PAY = 0;
exports.WITHDRAW_STATUS_PAID = 1;
exports.WITHDRAW_STATUS_SUCCEED = 2;
exports.WITHDRAW_STATUS_CANCELD = 3;

// 消费类型
exports.CONSUME_TYPE_PAY = 0;  // 付费
exports.CONSUME_TYPE_RECHARGE = 1; // 充值
exports.CONSUME_TYPE_JOIN = 2; // 充值

// 评价类型
exports.EVALUATE_TYPE_UNDO = 0;
exports.EVALUATE_TYPE_OUTSTANDING = 1;  // 非常好
exports.EVALUATE_TYPE_GOOD = 2;
exports.EVALUATE_TYPE_AVERAGE = 3;  
exports.EVALUATE_TYPE_BAD = 4;
exports.EVALUATE_TYPE_POOR = 5;  // 极差

// 操作类型
exports.ACTION_TYPE_CLOSE_IM_CONNECTION = 0
exports.ACTION_TYPE_OPEN_IM_CONNECTION = 1

// 操作状态
exports.ACTION_STATUS_WAITTING = 0
exports.ACTION_STATUS_FINISHED = 1

// 举报状态
exports.REPORT_STATUS_NORMAl = 0
exports.REPORT_STATUS_FINISHED = 1
exports.REPORT_STATUS_CANCEL=2

// 用户反馈状态
exports.FEEDBACK_STATUS_NORMAL = 0
exports.FEEDBACK_STATUS_HANDLED = 1
exports.FEEDBACK_STATUS_CANCEL = 2

// 文章状态
exports.ARTICLE_STATUS_EDITING = 0
exports.ARTICLE_STATUS_PUBLISHED = 1
exports.ARTICLE_STATUS_DISABLED = 2

// 文章类型
exports.ARTICLE_TYPE_INDEPENDENT = 0
exports.ARTICLE_TYPE_TOPIC = 1

// 专题状态
exports.TOPIC_STATUS_EDITING = 0
exports.TOPIC_STATUS_PUBLISHED = 1
exports.TOPIC_STATUS_DISABLED = 2

// 财务类型
exports.FINANCE_TYPE_RECHARGE = 0
exports.FINANCE_TYPE_CONSUME = 1
exports.FINANCE_TYPE_WITHDRAW = 2

// 管理员状态
exports.ADMIN_STATUS_NORMAL = 0
exports.ADMIN_STATUS_DISABLED = 0

//个人收支记录type
exports.INCOME_TYPE_SYSTEM = 0;//系统
exports.INCOME_TYPE_RECHARGE = 1;//充值
exports.INCOME_TYPE_WITHDRAW = 2;//提现
exports.INCOME_TYPE_BEBUY = 3;//被领走
exports.INCOME_TYPE_BUY = 4;//领走
exports.INCOME_TYPE_OUTTIME = 5//超时退款
exports.INCOME_TYPE_BROKE = 6 //分手退款
exports.INCOME_TYPE_SENDGIFT = 7;//送出礼物
exports.INCOME_TYPE_BESENDGIFT = 8;//被送礼物
exports.INCOME_TYPE_CALL = 9;//打电话消耗
exports.INCOME_TYPE_CALLED = 10;//打电话获得
exports.INCOME_TYPE_CUSTOMZATION = 11;//定制消耗
exports.INCOME_TYPE_BECUSTOMZATION = 12;//定制获得
exports.INCOME_TYPE_SIGN = 13;//打卡获得
exports.INCOME_TYPE_TASK = 14;//任务获得
exports.INCOME_TYPE_DATE_PAY=15;//约会支付
exports.INCOME_TYPE_DATE_GAIN=16;//约会获得
exports.INCOME_TYPE_DATE_DRAWBACK=17;//约会退款


/**************************透传相关常量***************************/

//普通人申请成为恋人的透传
exports.ACTION_SWEET_APPLY = "com.pocketsweet.SWEET_APPLY"
exports.ACTION_SWEET_ACCEPT = "com.pocketsweet.SWEET_ACCEPT"
exports.ACTION_SWEET_DELETE = "com.pocketsweet.SWEET_DELETE"

//定制恋人的透传
exports.ACTION_NEW_CUSTOMIZATION = "com.pocketsweet.NEW_CUSTOMIZATION"

// 用户的封号，禁言通知,变为普通人的通知
exports.ACTION_DISABLE_USER = "com.pocketsweet.DISABLE_USER"
exports.ACTION_FORBIDDEN_USER = "com.pocketsweet.FORBIDDEN_USER"
exports.ACTION_RESET_USER = "com.pocketsweet.RESET_USER"


// 申请成为认证用户的结果的通知
exports.ACTION_AUTHENTICATE_SUCCEED = "com.pocketsweet.AUTHENTICATE_SUCCEED"
exports.ACTION_AUTHENTICATE_FAILD = "com.pocketsweet.AUTHENTICATE_FAILD"

/**************************推送相关常量***************************/
exports.NEW_SYSYTEM_MASS_PUSH = "com.pocketsweet.NEW_SYSYTEM_MASS_PUSH"
exports.NEW_RECOMMEND_PUSH = "com.pocketsweet.NEW_RECOMMEND_PUSH"
exports.NEW_CUSTOMAZITION_PUSH = "com.pocketsweet.NEW_CUSTOMAZITION_PUSH"

// 推送的消息类型
// exports.NOTI_TYPE_NEW_APPLIER = "com.molianapp.NEW_APPLIER"
// exports.NOTI_TYPE_APPLY_BE_SELECTED = "com.molianapp.APPLY_BE_SELECTED"
// exports.NOTI_TYPE_ORDER_BE_SELECTED = "com.molianapp.ORDER_BE_SELECTED"
// exports.NOTI_TYPE_ORDER_SUCCEED_FINISHED = "com.molianapp.ORDER_SUCCEED_FINISHED"
// exports.NOTI_TYPE_EXPIRED_ORDER_CLOSED = "com.molianapp.EXPIRED_ORDER_CLOSED"

// // 申请成为认证用户的结果通知
// exports.NOTI_TYPE_AUTHENTICATE_SUCCEED = "com.molianapp.AUTHENTICATE_SUCCEED"
// exports.NOTI_TYPE_AUTHENTICATE_FAILD = "com.molianapp.AUTHENTICATE_FAILD"

// // 申请提现的结果通知
// exports.NOTI_TYPE_WITHDRAW_SUCCEED = "com.molianapp.WITHDRAW_SUCCEED"
// exports.NOTI_TYPE_WITHDRAW_FAILD = "com.molianapp.WITHDRAW_FAILD"

// // 服务成功,收到系统返现的通知
// exports.NOTI_TYPE_GET_SERVICE_INCOME = "com.molianapp.GET_SERVICE_INCOME"

/**************************IAP相关***************************/
// 沙箱验证地址
exports.APPLE_IAP_SANDBOX_VERIFY_URL = "https://sandbox.itunes.apple.com/verifyReceipt"
// 正式购买验证地址
exports.APPLE_IAP_BUY_VERIFY_URL = "https://buy.itunes.apple.com/verifyReceipt"

/**************************环信相关***************************/
//线上
exports.HX_CLIENT_ID = "YXA6lgky4MixEeWoIVOiSAqi7A"
exports.HX_CLIENT_SECRET = "YXA6cTiF-O5ipTc8XhYp4C8vWVv_SfU"
//exports.HX_CLIENT_ID = "YXA6nYEzIMZYEeWInSnHfaskWg"
//exports.HX_CLIENT_SECRET = "YXA6iRQOFLCY79XhYo0X6QuL4-6mxMQ"
